<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Answer extends Model
{
    /**
     * @var array
     */
    protected $fillable = ['answer_content', 'master_id', 'master_name', 'question_id'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function master()
    {
        return $this->belongsTo(Master::class);
    }

    public function question()
    {
        return $this->belongsTo(Question::class);
    }
}
